package com.xwtech.framework.login.pub;

import java.util.Set;

import com.xwtech.framework.pub.po.FrameLogin;
import com.xwtech.framework.pub.po.FrameRole;

/**
 * 
 * <p>
 * Title: Framework
 * </p>
 * <p>
 * Description: Framework
 * </p>
 * <p>
 * Copyright: Copyright (c) 2005
 * </p>
 * <p>
 * Company: xwtech.com
 * </p>
 * 
 * @author starxu
 * @version 1.0
 * 
 * 登录令牌抽象基类 AbstractLoginToken 保存登录信息login ,baseInfo和权限信息roles
 * 
 */
abstract public class AbstractLoginToken {
	private FrameLogin frameLogin;

	private Object baseInfo;

	private FrameRole[] frameRoles;

	private String menuHtmlet;

	/******* 2009.8.14 fengqi add **********/
	// 为了存储符合用户权限的url集合
	private Set urlSet;

	public Set getUrlSet() {
		return urlSet;
	}

	public void setUrlSet(Set urlSet) {
		this.urlSet = urlSet;
	}

	/******* 2009.8.14 fengqi add **********/
	
	public FrameLogin getFrameLogin() {
		return frameLogin;
	}

	public void setFrameLogin(FrameLogin frameLogin) {
		this.frameLogin = frameLogin;
	}

	public Object getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(Object baseInfo) {
		this.baseInfo = baseInfo;
	}

	public FrameRole[] getFrameRoles() {
		return frameRoles;
	}

	public void setFrameRoles(FrameRole[] roles) {
		this.frameRoles = roles;
	}

	public void setMenuHtmlet(String menuHtmlet) {
		this.menuHtmlet = menuHtmlet;
	}

	public String getMenuHtmlet() {
		return this.menuHtmlet;
	}

	public abstract void load(FrameLogin framelogin);

}
